<h1>Listing stops</h1>

<table>
  <tr>
    <th>Stop number</th>
    <th>Timeframe low</th>
    <th>Timeframe high</th>
    <th>Location</th>
    <th>Notes</th>
    <th>Route</th>
  </tr>

<% @stops.each do |stop| %>
  <tr>
    <td><%=h stop.stop_number %></td>
    <td><%=h stop.timeframe_low %></td>
    <td><%=h stop.timeframe_high %></td>
    <td><%=h stop.location_id %></td>
    <td><%=h stop.notes %></td>
    <td><%=h stop.route_id %></td>
    <td><%= link_to 'Show', stop%></td>
    <td><%= link_to 'Edit', edit_stop_path(stop) %></td>
    <td><%= link_to 'Destroy', stop, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New stop', new_stop_path %>